package com.run.go.gearbox.core.gearbox.gear;

/**
 * 档位（齿轮）抽象类
 */
public abstract class AbstractGear implements Gear{

    /**
     * 当个档位马力， 对应连接数
     */
    public Integer power;

    protected AbstractGear(Integer power){
        this.power = power;
    }

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }

    @Override
    public void start() {
        gear();
    }

    @Override
    public void stop() {
        downGear();
    }
}
